<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="zh-cn">
<%@ include file="/WEB-INF/view-system/include/contentTaglib.jsp"%>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<script src="${ctx}/static-system/js/log/logExhibition.js" type="text/javascript"></script>
    <link href="${ctx}/static-system/css/log/logExhibition.css" rel="stylesheet" type="text/css"/>
	<title>日志查询</title>
</head>
<tags:dataSet id="logSet">
	<tags:dataField name="id" display="id" sort="false" visiable="false" cssClass="table-header-center"/>
	<tags:dataField name="oper_name" display="操作人" sort="false" cssClass="table-header-center"/>
	<tags:dataField name="oper_id" display="操作人工号" sort="false" cssClass="table-header-center"/>
	<tags:dataField name="channel" display="渠道" sort="false" cssClass="table-header-center"/>
	<tags:dataField name="busi_type" display="业务类型" sort="false" cssClass="table-header-center"/>
	<tags:dataField name="busi_name" display="业务名称" sort="false" cssClass="table-header-center"/>
	<tags:dataField name="target_name" display="对象姓名" sort="false" cssClass="table-header-center"/>
	<tags:dataField name="target_type" display="对象类型" sort="false" cssClass="table-header-center"/>
	<tags:dataField name="key_value" display="对象关键值" sort="false" cssClass="table-header-center"/>
	<tags:dataField name="target_id" display="对象id" sort="false" visiable="false" cssClass="table-header-center"/>
	<tags:dataField name="target_attr" display="对象属性" sort="false" cssClass="table-header-center"/>
	<tags:dataField name="changevalue" display="修改值" sort="false" cssClass="table-header-center"/>
	<tags:dataField name="changebefore" display="修改前" sort="false" cssClass="table-header-center"/>
	<tags:dataField name="changeafter" display="修改后" sort="false" cssClass="table-header-center"/>
	<tags:dataField width="15%" name="createtime" display="操作时间" cssClass="table-header-center"/>
</tags:dataSet>
<tags:ajax id="queryLogsAjax" url="${ctx }/system/log/query" type="post"
	autoSend="false" formSubmit="true" formQuery="#queryLogFrm"
	onSuccess="onQuerySucc"/>
<body>
	<tags:boards>
		<tags:board width="100%" boardTitle="日志管理">
		
	<form action="" id="queryLogFrm">
		<div class="paramArea">
			<div class="col-xs-6 col-md-4 timerDiv">
				<div class="col-md-3 spanDiv">
					<span>开始时间：</span>
				</div>
				<div class="col-md-9">
					<tags:datepicker dateFormat="yyyy-MM-dd HH:ii" name="startDate"
						 dateType="datetime" id="startDate"/>
				</div>
			</div>
			<div class="col-xs-6 col-md-4 timerDiv">
				<div class="col-md-3 spanDiv">
					<span class="timeMiddle">结束时间：</span>
				</div>
				<div class="col-md-9">
					<tags:datepicker dateFormat="yyyy-MM-dd hh:ii" name="endDate"
						 dateType="datetime" id="endDate"/>
				</div>
			</div>
			<div class="col-xs-6 col-md-4 timerDiv">
				<div class="col-md-3 spanDiv">
					<span>业务类型：</span>
				</div>
				<div class="col-md-9">
				<tags:dropcode codeType="logBusyType" id="busi_type" name="busi_type" className="form-control" showSelectAll="true"/>
				</div>
			</div>
			<div class="col-xs-6 col-md-4 timerDiv">
				<div class="col-md-3 spanDiv">
				<span>渠道来源：</span>
				</div>
				<div class="col-md-9">
				<tags:dropcode codeType="apiChannel" id="channel" name="channel" className="form-control" showSelectAll="true"/>
				</div>
			</div>
			<div class="col-xs-6 col-md-4 timerDiv">
				<div class="col-md-3 spanDiv">
				<span>对象类型：</span>
				</div>
				<div class="col-md-9">
				<tags:dropcode codeType="targetType" id="target_type" name="target_type" className="form-control" showSelectAll="true"/>
				</div>
			</div>
			<div class="col-xs-6 col-md-4 timerDiv">
				<div class="col-md-3 spanDiv">
					<span id="searchNum">对象编号：</span>
				</div>
				<div class="col-md-9">
				<input type="text" name="target_id" class="form-control">
				</div>
			</div>
			<div class="col-xs-12 btnArea">
				<button type="button" class="btn searBtn" onclick="btnSubmit()">查询</button>
				<button type="reset" class="btn">重置</button>
			</div>
		</div>
		
		<div class="tableArea">
			<tags:datatable ajax="queryLogsAjax" id="logsTable" dataSet="logSet"
				automatic="true" storage="false" striped="true" cutLine="true"
				border="false" pagination="logsPagination"
				onRenderItem="tablexEvents.onRenderItem"/>
			<tags:pagination datatable="logsTable" pageSize="15" id="logsPagination"
				pageChoice="10,15,30"/>
		</div>
	</form>
	</tags:board>
	</tags:boards>
</body>
</html>